<?php
namespace app\log\controller;
use app\common\controller\Common;
use think\Request;
class MsgLog extends Common
{
	protected $model = null;
	protected $keyword_search = [];

	public function _initialize(){
		parent::_initialize();
		$this->model = model('MsgLog');
	}

	/**
	 * 短信记录
	 */
	public function index()
	{
		if(Request()->isGet()){
			if(Request()->isAjax()){
				$data = input('get.');
				return $this->getList($data);
			}
			return $this->fetch('');
		}
	}

	/**
	 * 列表查询条件处理
	 * @param array $data 查询参数
	 */
	protected function handleList($data)
	{
		$where = [];
		/*@维修单ID*/
		if(isset($data['repair_id']) && $data['repair_id'] != ''){
			$where['repair_id'] = $data['repair_id'];
		}
		return $where;
	}
}